import request from '@/utils/request';

export async function getConfigByGroup(data) {
    return request({
        url: '/api/v1/backend/config/group/' + data.group_id,
        method: 'get'
    });
}

export async function getConfigGroupList() {
    return request({
        url: '/api/v1/backend/config/group_list',
        method: 'get'
    });
}

export async function updateConfigValueBatch(data) {
    return request({
        url: '/api/v1/backend/config/batch',
        data: data,
        method: 'put'
    });
}
